﻿using System;

using Ah.Testudin.Engine.Actors.Components;
using Ah.Testudin.Engine.Actors.Components.Animation;

namespace Ah.Testudin.Engine.Events.Components
{
    public class AnimationComponentCreatedEvent : ITestudinEvent
    {
        #region Properties

        public IAnimationComponent AnimationComponent { get; private set; }

        #endregion

        public AnimationComponentCreatedEvent(
            IAnimationComponent animationComponent)
        {
            if (animationComponent == null)
            {
                throw new ArgumentNullException("animationComponent");
            }

            this.AnimationComponent = animationComponent;
        }

        #region ITestudinEvent

        public EventType EventType { get { return EventType.AnimationComponentCreated; } }

        #endregion
    }
}
